package com.zlz.open.ugs;

import com.zlz.open.ugs.util.SnowflakeIdUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@Slf4j
@SpringBootApplication
public class UniversalGatewayApplication {

	public static void main(String[] args) {
		SpringApplication.run(UniversalGatewayApplication.class, args);
		log.info("universal gateway 启动成功");
	}

	@Bean
	public SnowflakeIdUtil getSnowflakeIdUtil() {
		return SnowflakeIdUtil.getInstance();
	}
}
